<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title>Hero animation</title>
    <script type="text/javascript" src="src/demo.js"></script>
    <style>
      {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);  
      }
      html, body {
        margin: 0;
      }
      body {
        background: #fff;
        font-family: sans-serif;
      }
      .page-container {
        width: 100%;
        position: relative;
        background: rgb(0, 0, 0);
      }
      @media (min-width: 28em) {
        body {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          background: #000000;
          position: relative;
        }
        .page-container {
          box-shadow: 0 0 1em rgba(253, 253, 253, 0.5);
          width: 50em;
        }
      }
      .page {
        background: rgb(0, 0, 0);
        color: #fff;
        transition: opacity 0.4s ease-in-out,
                    transform 0.4s ease-in-out;
        width: 100%;
      }
      h2 {
        font-size: 1.1em;
        margin: .2em 0;
      }
      .header {
        height: 3.5em;
        color: rgb(255, 255, 255);
        background: #000000;
        overflow: hidden;
      }
      .header-content {
        width: 100%;
        box-sizing: border-box;
        padding: .4em .8em;
        color: rgb(0, 0, 0);
        display: flex;
        align-items: center;
        position: absolute;
        transition: opacity 0.4s ease-in-out,
                    transform 0.4s ease-in-out;
      }
      .header h1 {
        font-weight: normal;
        margin: 0;
        font-size: 1.5em;
        line-height: 1.8em;
      }
      .header-title {
        color: rgb(255, 255, 255);
        font-size: 1.5em;
        line-height: 1.8em;
        transition: transform 0.4s ease-in-out;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .header .rank {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 2.7em;
        height: 2.7em;
        margin-right: .5em;
        position: relative;
      }
      .header .rank-circle {
        position: absolute;
        background: #fff;
        width: 2.7em;
        height: 2.7em;
        border-radius: 1.35em;
        margin-right: .5em;
        transition: transform 0.4s ease-in-out;
        top: 0;
        left: 0;
      }
      .header-rank {
        z-index: 2;
        color: #1293ea;
        font-size: 1.5em;
      }
      .header .close {
        line-height: 1.8em;
        cursor: pointer;
        text-align: center;
        width: 1.8em;
        height: 1.8em;
        border-radius: .9em;
        background: rgba(0, 0, 0, .5);
        transition: transform 0.4s ease-in-out;
      }
      .hero {
        transition: transform 0.4s ease-in-out,
                    opacity 0.4s ease-in-out;
        width: 8em;
        padding-right: 1em;
        flex: none;
      }
      .page-content {
        position: relative;
        overflow: hidden;
        width: 100%;
        height: calc(100% - 3.5em);
      }
      .list {
        /* position: absolute; */
        width: 100%;
        transition: transform 0.4s ease-in-out,
                    opacity 0.4s ease-in-out;
      }
      .desc {
        /* position: absolute; */
        transition: transform 0.4s ease-in-out,
                    opacity 0.4s ease-in-out;
      }
      .spacer {
        flex: 1;
      }
      .row {
        transition: opacity 0.4s ease-in-out,
                    transform 0.4s ease-in-out;

        display: flex;
        cursor: pointer;
        box-sizing: border-box;
        padding: 1em;
      }
      .row:not(:first-child) {
        border-top: 1px solid #ffffff;
      }
      .row div {
        display: inline-block;
      }
      .row > div:nth-child(1) {
        text-align: center;
        margin-right: 1em;
        width: 1em;
      }
    </style>
  </head>
  <body>
    <div id="app"></div>
  </body>
</html>
